﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;
using DAL;
using Model;
namespace UI.system.page.quan
{
    public partial class quanadd : BaseAdmin
    {
        public QuanInfo info = new QuanInfo();
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = JobRequest.GetRequestInt("id");
            if (id != 0)
            {
                info = QuanDAL.FindOneByID(id);
            }
            else
            {
                info.IsShow = 1;
                info.BeginDate = DateTime.Now;
                info.EndDate = DateTime.Now.AddYears(1);
            }
        }
    }
}